from utils.constants import ERROR_CODE


class BaseError(Exception):

    def __init__(self, code=ERROR_CODE, http_code=400, msg='error'):
        self.code = code
        self.http_code = http_code
        self.msg = msg
